
class DepartmentDataList {
  int? id;
  String? departmentNo;
  int? parentId;
  String? departmentName;
  String? hospitalNo;
  String? content;
  String? isFeature;
  String? isMain;
  String? logoUrl;

  DepartmentDataList({this.id, this.departmentNo, this.parentId, this.departmentName, this.hospitalNo, this.content, this.isFeature, this.isMain, this.logoUrl});

  DepartmentDataList.fromJson(Map<String, dynamic> json) {
    if(json["id"] is int) {
      id = json["id"];
    }
    if(json["departmentNo"] is String) {
      departmentNo = json["departmentNo"];
    }
    if(json["parentId"] is int) {
      parentId = json["parentId"];
    }
    if(json["departmentName"] is String) {
      departmentName = json["departmentName"];
    }
    if(json["hospitalNo"] is String) {
      hospitalNo = json["hospitalNo"];
    }
    if(json["content"] is String) {
      content = json["content"];
    }
    if(json["isFeature"] is String) {
      isFeature = json["isFeature"];
    }
    if(json["isMain"] is String) {
      isMain = json["isMain"];
    }
    if(json["logoUrl"] is String) {
      logoUrl = json["logoUrl"];
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["id"] = id;
    _data["departmentNo"] = departmentNo;
    _data["parentId"] = parentId;
    _data["departmentName"] = departmentName;
    _data["hospitalNo"] = hospitalNo;
    _data["content"] = content;
    _data["isFeature"] = isFeature;
    _data["isMain"] = isMain;
    _data["logoUrl"] = logoUrl;
    return _data;
  }
}